package com.example.friend.controller.user;

import com.example.common.core.controller.BaseController;
import com.example.common.core.domain.Result;
import com.example.friend.domain.user.dto.SubmitDTO;
import com.example.friend.service.user.UserQuestionService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 23050
 * @version 1.0
 * @description: 用户提交代码
 * @date 2025/5/1 18:26
 */

@RestController
@RequestMapping("/user/question")
public class UserQuestionController extends BaseController {


    @Resource
    private UserQuestionService userQuestionService;

    /**
     * @author 23050
     * @description:  用户提交代码
     * @date: 2025/5/1 18:27
     * @return com.example.common.core.domain.Result
     */
    @PostMapping("/submit")
    public Result submit(@RequestBody SubmitDTO submitDTO) {
        return userQuestionService.submit(submitDTO);
    }





}
